/*
 * ******************************************************
 *   Copyright ©, 2017-2020, 安徽财金信息科技有限公司
 * ******************************************************
 */
package com.wy.poties.controller;

import com.wy.poties.DTO.PoetTypePoetryDTO;
import com.wy.poties.service.PoetService;
import com.wy.poties.vo.ApiResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>Title:</p>
 * 一句话功能说明
 * <p>Description:</p>
 * 功能描述
 *
 * @author cj021_汪洋
 * @version 1.0
 * @date 2020-11-15 21:20
 */
@RequestMapping("/poet")
@RestController
public class PoetController {
    @Resource
    PoetService poetService;

    /**
     * 获取该类型诗文
     */
    @PostMapping("/poetTypePoetry")
    ApiResult poetTypePoetry(PoetTypePoetryDTO dto) {
        return ApiResult.success("success");
    }

    @PostMapping("/homeBanner")
    ApiResult homeBanner() {
        return poetService.homeBanner();
    }

    @PostMapping("/homeFantisyPoetry")
    ApiResult homeFantisyPoetry(Integer pageSize, Integer pageNum) {
        return poetService.homeFantisyPoetry(pageSize, pageNum);
    }
}